package com.hdoit.ares.web.tp.zzb.modelconfig;
import com.hdoit.ares.web.brokerage.providers.ConfirmStateProvider;
import com.hdoit.ares.web.cust.providers.CustomerLevelProvider;
import com.hdoit.ares.web.insu.providers.FanhuaCarPropertyProvider;
import com.hdoit.ares.web.tp.providers.ComStateProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年03月01日 14:59:44
 * @comment
 */
public class TomeasureConfig extends ModelMetadataAttributeConfiguration{
    public TomeasureConfig(){
        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户表主键"));
        
        this.setProperty("scoreRate")
        	.hasAttribute(new DisplayNameAttribute("评分参数"));

        this.setProperty("carProperty")
        	.hasAttribute(new DisplayNameAttribute("车型"))
        	.hasAttribute(new DropDownListAttribute(new FanhuaCarPropertyProvider()));

        this.setProperty("taskId")
        	.hasAttribute(new DisplayNameAttribute("任务号"));
        
        this.setProperty("name")
            .hasAttribute(new DisplayNameAttribute("客户姓名"));

        this.setProperty("level")
            .hasAttribute(new DisplayNameAttribute("身份"))
            .hasAttribute(new DropDownListAttribute(new CustomerLevelProvider()));

        this.setProperty("insuName")
            .hasAttribute(new DisplayNameAttribute("品牌名称"));
        
        this.setProperty("carLicenseNo")
    		.hasAttribute(new DisplayNameAttribute("车牌号"));
        
        this.setProperty("phone")
        	.hasAttribute(new DisplayNameAttribute("联系方式"));
        
        this.setProperty("confirmState")
    		.hasAttribute(new DisplayNameAttribute("确认状态"))
    		.hasAttribute(new DropDownListAttribute(new ConfirmStateProvider()));
        
        this.setProperty("insuPlace")
        .hasAttribute(new DisplayNameAttribute("出单地区"));

        this.setProperty("businessMoney")
            .hasAttribute(new DisplayNameAttribute("商业险"));

        this.setProperty("efcInsureMoney")
            .hasAttribute(new DisplayNameAttribute("交强险"));
        
        this.setProperty("taxMoney")
        	.hasAttribute(new DisplayNameAttribute("车船税"));

        this.setProperty("totalMoney")
            .hasAttribute(new DisplayNameAttribute("总金额"));

        this.setProperty("reward")
            .hasAttribute(new DisplayNameAttribute("投保奖励"));

        this.setProperty("createTime")
            .hasAttribute(new DisplayNameAttribute("创建时间"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("modifyTime")
            .hasAttribute(new DisplayNameAttribute("修改时间"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("comState")
            .hasAttribute(new DisplayNameAttribute("阅读状态"))
            .hasAttribute(new DropDownListAttribute(new ComStateProvider()));

    }
}